Method and system for navigation control to select a target page from possible target pages

ABSTRACT

In general, the technology relates to navigation control in a web application that includes receiving an event of a navigation trigger in a first page of a web application, and obtaining, in response to the event, an expression for the navigation trigger. The technology further includes gathering data from a first data source specified by the expression. The technology further includes evaluating the expression using the data to select a second page from a set of possible target pages, where each of the possible target pages is separately pre-stored in a data repository. The technology further includes presenting the second page.

CROSS REFERENCE TO OTHER APPLICATIONS

This application is a continuation of and claims a benefit of priorityunder 35 U.S.C. 120 from U.S. patent application Ser. No. 14/585,842filed Dec. 20, 2014, entitled “METHOD AND SYSTEM FOR NAVIGATIONCONTROL,” issued as U.S. Pat. No. 11,113,359, which is hereby fullyincorporated herein by reference for all purposes.

BACKGROUND

A network is a set of interconnected computing devices that maycommunicate with each other. Web applications are applications that aredeveloped for the network that includes a series of pages. Each page mayinclude a button or other navigation control that links to another pagein the series of pages.

BRIEF DESCRIPTION OF DRAWINGS

FIGS. 1 and 2 show example schematic diagrams in accordance with one ormore embodiments of the technology.

FIGS. 3 and 4 show example flowcharts in accordance with one or moreembodiments of the technology.

FIGS. 5-7 shows an example in accordance with one or more embodiments ofthe technology.

FIG. 8 shows a computing system in accordance with one or moreembodiments of the technology.

DETAILED DESCRIPTION

Specific embodiments of the technology will now be described in detailwith reference to the accompanying figures. Like elements in the variousfigures are denoted by like reference numerals for consistency.

In the following detailed description of embodiments of the technology,numerous specific details are set forth in order to provide a morethorough understanding of the technology. However, it will be apparentto one of ordinary skill in the art that the technology may be practicedwithout these specific details. In other instances, well-known featureshave not been described in detail to avoid unnecessarily complicatingthe description.

Throughout the application, ordinal numbers (e.g., first, second, third,etc.) may be used as an adjective for an element (i.e., any noun in theapplication). The use of ordinal numbers is not to imply or create anyparticular ordering of the elements nor to limit any element to beingonly a single element unless expressly disclosed, such as by the use ofthe terms “before”, “after”, “single”, and other such terminology.Rather, the use of ordinal numbers is to distinguish between theelements. By way of an example, a first element is distinct from asecond element, and the first element may encompass more than oneelement and succeed (or precede) the second element in an ordering ofelements.

In general, embodiments of the technology are directed to includingexpressions in navigation triggers of web applications. In particular,within the code of a navigation trigger is an expression that specifiesa data source. Data from the data source may be used to evaluate theexpression. The result of the evaluation defines the target web pagefrom a set of possible target pages.

The term, “web application” is used in the present application togenerically refer to the web application executable, the web applicationdesign, or another form of the web application. Web applications includepages. A target page is a complete and independently stored documentfrom other pages in the set of possible target pages. In other words,the code of the target page and the code in other possible target pagesare different. In one or more embodiments, the difference may be withrespect to the entirety of the target page. In other embodiments, thedifference may be with respect to the body of the target page. When thedifference is with respect to the body of the target page, header andother themes of the target page may have the same code. Otherembodiments exist without departing from the scope of the technology.Further, the target page is pre-stored in the data repository prior tothe evaluation of the expression. Thus, the target page exists prior tothe request to obtain the target page. In one or more embodiments of thetechnology, the data that is populated on the target page may be thesame as data populated on other possible target pages. For example, onepossible target page may include code to display, without an editingcapability, an individual's name and address as stored in a database,while another possible target page may include code to display theindividual's name and address and code to permit editing of theaforementioned information.

As used in the detailed description and claims, a developer is anindividual or group of individuals that creates a web applicationdesign. An end user is an individual or group of individuals that usesthe web application once the web application is developed. Further, anindividual or group is deemed to perform an action when an action isperformed on behalf of the individual. The entity performing the actionmay be one or more other individuals, an organization, a device, or acombination thereof.

FIG. 1 shows a schematic diagram of a system in accordance with one ormore embodiments of the technology. Specifically, FIG. 1 shows aschematic diagram of an environment (100) for developing a webapplication design (110) and executing a web application executable(158) created from the web application design (110) in accordance withone or more embodiments of the technology. As shown in FIG. 1 , theenvironment (100) includes backend services (102), a runtime framework(104), a component library (106), and an application model (108). Eachof the aforementioned components is described below.

In one or more embodiments of the technology, backend services (102) areservices that are not shown to the developer and ease the development ofthe web application design (110). The backend services (102) may includeapplication services (112) and platform services (114). In one or moreembodiments of the technology, the application services (102) allow auser interface based web application to be built on top of a genericmodel of a web application.

In one or more embodiments of the technology, the platform services(114) are services that manage the application for multiple differentplatforms. The multiple different platforms may have heterogeneousoperating systems, devices, and/or display device sizes.

In one or more embodiments of the technology, the runtime framework(104) provides a runtime environment for a web application executable(158). Specifically, the runtime framework (104) manages the data andevents of the executing web application executable (158). The runtimeframework (104) is described in FIG. 2 and below.

In one or more embodiments of the technology, the component library(106) is a library of application components that a developer may add tothe web application design (110). In other words, the developer mayselect components from the component library (106) to add functionalityto the web application design (110). The components library (106) mayinclude user interface components and processing components.

In one or more embodiments of the technology, user interface componentsare components that are displayed to an end user. In other words,instances of the user interface components are displayed on a displaydevice. In one or more embodiments of the technology, the user interfacecomponents may include, but are not limited to, buttons (116) (e.g.,radio buttons, common button), menus (118) (e.g., drop down menu, checkboxes), charts (120), layouts (122), inputs (e.g., fields) (124) andcombo boxes (130). User interface components in the component librarymay each be associated with a set of options. The set of options definethe execution of the user interface component. Namely, the set ofoptions define how a particular instance of the component is executed.Options associated with the user interface components may includeformatting, any text that is displayed, any action that is to beperformed when the user interface component is selected, other options,and/or any combination thereof. The action may be to: perform anoperation on the page, transition to a specific static page, evaluate anexpression to determine the page for transitioning, and/or performanother operation.

In one or more embodiments of the technology, the expression may specifyone or more data sources and operations to perform on the data from oneor more data sources. A data source is a location of data that is notwithin the expression. For example, the data source may be anotherportion of the application page or a data repository. For example,another portion of the application page may be a text field, drop downmenu option, or other option. Data from the data source is used toevaluate the operations in the expression. For example, the operationmay include a conditional statement based on the data obtained. By wayof another example, the operation may be to perform an end usersubmitted action specified in another field of the page. The result ofevaluating the expression is the target page that is selected.

In one or more embodiments of the technology, the processing componentsare components that are hidden to the end user (i.e., are not displayedto the end user). For example, the processing components may includeevents (126), result lists (128), formatter (132), functions (134),actions (136), and libraries (138). Each of the processing componentsare discussed below.

Formatter (132) are instructions which enable arranging of the data inspecific formats in accordance with one or more embodiments of thetechnology. A formatter may be applied to number, date time values,other values, or a combination thereof. In accordance with one or moreembodiments of the technology, functions (134) are the re-usable pieceof code, which take a set of inputs and return an output. Examples offunctions include concat, substring, min, max, and other functions.

In accordance with one or more embodiments of the technology, an action(136) is a piece of reusable executable functionality that can beabstracted out of any particular component so that the action may beusefully shared among multiple pages and/or context menus. Exampleactions include update, delete, create, check-in, checkout, download,and other actions.

In accordance with one or more embodiments of the technology, a libraryis a group of files which constitute utility, infrastructure code.Example libraries include application startup code, action manager, typemanager, utility, and logger. The processing components may also each beassociated with a set of options that define how processing componentsare used.

In one or more embodiments of the technology, an application model (108)is a generic model for any web application. The application modelincludes pages (140), fragments (142), data actions and data sources(144), session variables (146), application master (148), context menus(150), action flows (152), and a pick list (154). Each of thesecomponents of the application model is described below.

A page (140) in the application model (108) is a template for a webpage. In other words, a page in the application model (108) is atemplate for a complete and individual document that is displayable tothe end user. A fragment (142) represents at least a portion of anactivity. In other words, an activity is a defined sequence of actionsthat an end user may perform using the web application. A fragment is aportion of the defined sequence of actions. Data actions and datasources (144) define the storage structure and storage location of thedata and the actions to perform on the data.

Session variables (146) are the variables stored for a particularsession between the end user and the web application executable (158).For example, session variables (146) may include connection variablesand information about the end user, such as the user's credentials(e.g., user identifier), role of the end user, and other information.

The application master (148) defines the global look and feel of the webapplication in accordance with one or more embodiments of thetechnology. For example, the application master (148) may includevarious banners, menu items, fonts, colors, and other features that aredisplayed and surround the individual pages. By way of another example,the application master (148) may include a template on which the pages(140) are based.

Context menus (150) are instances of menus that are dependent on thecontext in which the menu is selected. For example, the context may be aparticular user interface component that is selected, the page that isdisplayed, or another context. The context menu presents options thatare specific to the particular context. The manner of selecting thecontext menu is not dependent on the context. Specifically, an end usermay select the context menu in the same way and have different menuoptions presented based on the context.

Action flows (152) are a sequence of actions that are performed. Actionflows may or may not have user interaction. For example, an action flowmay be completely automatic. By way of another example, an action flowmay be a defined sequence of actions by which a user is guided using theweb application.

In one or more embodiments of the technology, a pick list (154) is alist of displayed items from which a set of items may be selected. Inother words, more than one displayed item may be selected from a picklist.

The web application design (110) is a particular design of a webapplication created by a developer. Specifically, the web applicationdesign (110) includes instances of the components of the applicationmodel (108) and component library (106), may execute on the runtimeenvironment (104) and use the backend services (102).

The web application design (110) is connected to a builder (156) inaccordance with one or more embodiments of the technology. The builder(156) provides a user interface for a developer to create the webapplication design (110). In some embodiments, the developer does notneed to know programming languages or other development knowledge tobuild the web application design. Rather, the builder (156) provides aninterface by which the developer can primarily drag and drop componentsinto a web application design (110), and enter parameters into fields tocreate the web application design (110). Thus, in some embodiments, adeveloper may be a business analyst rather than have any training inapplication development using a programming language.

The user interface of the builder (156) may include editor features andsub-systems. The editor features may include editors for modifyingvarious aspects or views of the web application design, a builder userinterface to assist in the development of the web application design inaccordance with one or more embodiments of the technology. For example,the editors may include business objects, document, case, search,reports, pages, roles, app, widgets, and process editors. The builderuser interface may include a new artifact wizard, add-on top-level menu,add-on tool bar buttons, context menus, artifacts properties page, and amodel editor.

The builder (156) also includes functionality to create the webapplication executable (158) from the web application design (110). Inother words, the builder constructs the instructions for the webapplication executable from the web application design that is createdusing a drag and drop framework in accordance with one or moreembodiments of the technology. The builder (156) may include componentsand functionality to perform artifact management, validate the webapplication, generate code, package and deploy the web application. Thebuilder (156) may also include components functionality to performsource control and project/library management.

While FIG. 1 shows a configuration of components, other configurationsmay be used without departing from the scope of the technology. Forexample, various components may be combined to create a singlecomponent. As another example, the functionality performed by a singlecomponent may be performed by two or more components.

FIG. 2 shows a schematic diagram of a runtime framework (104) inaccordance with one or more embodiments of the technology. As shown inFIG. 2 , the runtime framework (104) includes a page document objectmodel (DOM) (202). The page DOM (202) is a model for representing andinteracting with a particular page of an application. The page DOM (202)defines a page view (204) and inline sources (206). The page view (204)is a view of an application page. The page view (204) includes anavigation trigger (208). For example, the navigation trigger (208) maybe a button or other selectable user interface component that, whenselected by a user, triggers a navigation to a target page. In one ormore embodiments of the technology, selection of the navigation triggertriggers the execution of code that defines a target page fornavigation. In one or more embodiments of the technology, the codeincludes an expression specifying one or more data sources. The datasources that may be specified by the expression include inline sources(206) defined within the page DOM (202) or external sources (210).

Inline sources (206) may include widgets (212), data services (214), andother fragments (216). A widget (212) is an object on the page, such asa text field, a check box, radio button, tab, and other such userinterface elements. Data services (214) are sources of end user data,such as data gathered from the end user and/or a data repository in oneor more embodiments of the technology. Other fragments (216) include theoutput of fragments on the page.

External sources (210) are sources that exist outside of the page DOM(202). For example, external sources (210) may include user interface(UI) events (218) and session variables (220). UI events (218) mayinclude the various interactions between a page and an end user. Forexample, a UI event may include a start of submission of data, aselection of a navigation trigger, a switching to another field, oranother event. Session variables (220) may be the same or similar to thesession variables discussed above with reference to FIG. 1 . Further,session variables may also be referred to as session parameters.

The page DOM (202) and external sources (210) may be connected to acontext data cache (224). The context data cache (224) is a cache forlocally storing data from the data sources (e.g., inline sources (206),external sources (210)).

An event bus (222) is a bus for transferring events to the pagenavigation sub-system (226). In other words, the triggering of an eventis managed by the event bus (222), which triggers execution of the pagenavigation sub-system (226).

The page navigation sub-system (226) is a software sub-system that isconfigured to select and serve the target page. Specifically, the pagenavigation sub-system (226) includes an expression evaluator (228), pagerenditions (230), and page configurations (232). The expressionevaluator (228) includes functionality to evaluate the expressiondefined for the navigation trigger (208). Specifically, the expressionevaluator (228) includes functionality to gather data from the datasources and/or context data cache and evaluate the expression.

The page renditions (230) are software components that are configured togenerate or otherwise obtain a version of the target page for theparticular end user device. Specifically, a target page may havemultiple versions. Each of the multiple versions may be defined for aparticular device, display size, type of device, or other attribute ofthe device. The page renditions (230) include functionality to determinethe attribute of the device defining the particular version and generateor acquire the version of a target page for the attribute.

The page configurations (232) includes functionality to maintain amapping between the page identifiers of target pages and the file havingthe target page. In other words, the result of evaluating the expressionmay be a page identifier. The page identified may not identify a virtualor physical storage location of the target page in accordance with oneor more embodiments of the technology. The mapping relates the pageidentifiers to the corresponding storage locations.

In one or more embodiments of the technology, the page navigationsub-system (226) is connected to a data repository (234). In one or moreembodiments of the technology, the data repository (234) is any type ofstorage unit and/or device (e.g., a file system, database, collection oftables, or any other storage mechanism) for storing data. Further, thedata repository (234) may include multiple different storage unitsand/or devices. The data repository (234) includes functionality tostore possible target pages (236). Possible target pages (236) are theset of pages from which a target page may be selected based on theevaluation of the expression. In other words, the possible target pagesare different pages from which the target page may be selected and, inwhich the result of the evaluation of the expression determines theselection. In one or more embodiments of the technology, possible targetpages are not merely different versions of the same target page, whereeach version is for a different type of device. Rather, the possibletarget pages are different pages entirely. In other words, a version ofeach of the possible target pages may be displayed on the same end userdevice.

FIGS. 3 and 4 show flowcharts in accordance with one or more embodimentsof the technology. While the various steps in these flowcharts arepresented and described sequentially, one of ordinary skill willappreciate that some or all of the steps may be executed in differentorders, may be combined or omitted, and some or all of the steps may beexecuted in parallel. Furthermore, the steps may be performed activelyor passively. For example, some steps may be performed using polling orbe interrupt driven in accordance with one or more embodiments of thetechnology. By way of an example, determination steps may not require aprocessor to process an instruction unless an interrupt is received tosignify that condition exists in accordance with one or more embodimentsof the technology. As another example, determination steps may beperformed by performing a test, such as checking a data value to testwhether the value is consistent with the tested condition in accordancewith one or more embodiments of the technology.

FIG. 3 shows a flowchart in accordance with one or more embodiments ofthe technology. FIG. 3 may be performed by one or more of the componentsshown in FIG. 1 . In FIG. 3 , in Step 301, a selection of a navigationtrigger is received in the builder in accordance with one or moreembodiments of the technology. For example, the developer may drag anddrop the navigation trigger from a template set of navigation triggersto a particular location on the page. As another example, the developermay select, in the developer interface, the navigation trigger. Inresponse, the builder may display an editor for configuring thenavigation trigger.

In Step 303, a selection to use an expression for defining the target ofthe navigation is received in accordance with one or more embodiments ofthe technology. In one or more embodiments of the technology, thedeveloper may select to use a statically defined target page or anexpression. Any mechanism for the developer to select an expression maybe used without departing from the scope of the technology. Although notshown in FIG. 3 , if the developer selects to use a statically definedtarget page, then the developer may submit a page identifier in a fieldor select the page from a list of pages.

In Step 305, an expression field is presented to define the expressionin accordance with one or more embodiments of the technology. In one ormore embodiments of the technology, one or more expression fields aredisplayed for the developer. The expression field(s) may be text boxes,drop down boxes, and other user interface elements for the submission ofdata.

In Step 307, in the expression field, an expression specifying one ormore operations to perform on one or more data sources and identifyingcorresponding target pages is received in accordance with one or moreembodiments of the technology. The developer provides an expressionusing the displayed fields. In one or more embodiments of thetechnology, the creation of the expression may be interactive betweenthe builder and the developer. In other words, the expression field(s)may be dynamically displayed in order to generate the expression. Forexample, the developer may select, from a list of available operations,an operation. In response, the number of fields corresponding to thenumber of operands that the operation uses may be displayed with textindicating types of acceptable data sources for the particularoperation. In the example, if the operation selected by the developeruses two operands, then the builder may display two fields;alternatively, if the operation uses one operand, then the builderdisplays a single field.

In Step 309, the expression for the navigation trigger is stored in theweb application design in accordance with one or more embodiments of thetechnology. In one or more embodiments of the technology, the builderstores the expression as part of the web application design. Thus, thedeveloper may continue to edit the web application. While the developeris editing the web application, the builder may perform librarymanagement, source control, and any other management of the webapplication.

In Step 311, the web application executable is built from the webapplication design in accordance with one or more embodiments of thetechnology. Specifically, when the developer has completed developingthe web application, the builder creates the web application executablefrom the web application design. Creating the web application executablemay include translating the developer created expression for thenavigation trigger into an expression in source code and thentranslating the source code form of the expression into object code orother executable. Alternatively, the developer created expression may betranslated directly into the executable.

FIG. 4 shows a flowchart for an end user in accordance with one or moreembodiments of the technology. FIG. 4 may be performed using the runtimeenvironment shown in FIG. 2 . In Step 401, an event of a navigationtrigger is received in the web application in accordance with one ormore embodiments of the technology. In one or more embodiments of thetechnology, the end user selects the navigation trigger while the webapplication is executing and a page is being displayed. For example, theselection of the navigation trigger may be that the end user selects abutton, a tab, or other trigger in the application page.

In response to the selection, an expression is obtained for thenavigation trigger in Step 403. Specifically, the selection triggers thebrowser to execute the code for the navigation trigger where the codeembodies the expression.

In Step 405, data from one or more data sources specified in theexpression is gathered. In one or more embodiments of the technology,the expression may reference inline data sources and/or external datasources. In response, the data is obtained from the referenced datasources. For example, the data may be obtained by accessing a datarepository to identify user data, the values of session variables,and/or the values of fields within the page.

In Step 407, the expression is evaluated using the one or more datasources to select a target page from the set of possible target pages.Specifically, the one or more operations specified in the expression areperformed. For example, the operations may be to access different datasources and compare the data obtained. The result of the comparison maybe a target page specified by the expression. Another example operationmay be to receive an instruction or command in another field of thecurrent web page and execute the instruction in the command.

By way of a more concrete example, consider the scenario in which adeveloper would like a user to navigate to a first target page if theuser is a first class of user and to a second target page if the user isa second class of user. In other words, not only does the data on thepage change between the first web page and the second web page, but theentire web page changes. In such a scenario, the expression may be toobtain the user identifier from a session variable, access a database todetermine the class of user corresponding to the user identifier, andexecute a conditional operation in which if the class of user is thefirst class, then navigate to the first target page and, if the user isa second class, then navigate to a second target page.

In Step 409, the version of the target page for the display device isidentified in accordance with one or more embodiments of the technology.In one or more embodiments of the technology, the attribute of the enduser device that dictates the version of the target page to display isobtained. For example, the attribute may be obtained from sessionvariables or one or more other data sources. Based on the attribute, theversion of the target page is identified.

Continuing with FIG. 4 , in Step 411, the target page is obtained fromthe data repository in accordance with one or more embodiments of thetechnology. In one or more embodiments of the technology, the result ofevaluating the expression is a page identifier of the selected targetpage. For example, the browser, after evaluating the expression, maysend a request to a backend server with the page identifier. Inresponse, the backend server may identify the version as described inStep 409 and obtain the target page from the data repository.

In one or more embodiments of the technology, the obtaining of thetarget page and identifying the version may be performed in virtuallyany order. For example, after the target page is obtained from the datarepository, the target page may be rendered according to the displaydevice. By way of another example, the backend server may obtain theversion from the data repository after identifying the version toobtain.

In Step 413, the target page is displayed on the display device. Thetarget page is presented to the user. Thus, the user may continue to usethe web application in accordance with one or more embodiments of thetechnology.

As shown above, the selection of the navigation trigger causes theevaluation of the expression that is within the code of the navigationtrigger. In other words, rather than a redirection from the target pageof the navigation trigger, the code of the navigation trigger itselfdefines which of multiple target pages to access. Consequently, in oneor more embodiments of the technology, the next immediate page that isserved to the browser after the web page that has the navigation triggeris the appropriate target page, which is selected from the set ofpossible target pages.

FIG. 5-7 shows an example in accordance with one or more embodiments ofthe technology. The following example is for explanatory purposes onlyand not intended to limit the scope of the technology.

Turning to FIG. 5 , FIG. 5 shows an example builder user interface(500). The example interface shown in FIG. 5 is an example of theinterface of the development environment shown in FIG. 1 , when at leastsome of the Steps shown in FIG. 3 are performed. As shown, the builderuser interface (500) may include multiple panes or divisions of theinterface including an application editor list pane (502), an editorpane (504), and an options pane (506).

The application editor list pane (502) presents the various aspects ofthe web application that the developer may edit by selecting theappropriate editor. As shown in the application editor list pane (502),a developer may access the application master, the application userinterface editor, and the business object user interface editor, contentuser interface editor, folder user interface editor, process userinterface editor, user interface editor, and session parameter editor.Within the business object user interface, the developer may access theemployee definition web pages and select a particular web page (508).The selected webpage is the edit employee web page.

In one or more embodiments of the technology, in response to theselection within the business object user interface editor, the builderuser interface (500) displays, in the editor page (504), the businessobject user interface editor. The business object user interface editordisplays the edit employee web page per the selected web page (508).Continuing with the example, consider the scenario in which thedeveloper selects the get manager details button (510) within the editorview page (504).

In response to selecting the get manager details button (510), thebuilder user interface (500) displays, in the options pane (506), theoptions for the get manager details button (510). From the options, thedeveloper may select the expression button (512) to use an expression toselect a page from a set of possible target pages rather than the pagebutton (514) to reference a static page. The developer may further enteran expression (516) in the expression field (518). The expression (516),in the example, refers to data field (520) on the same page as the getmanager details button (510). In other words, the data field (520) isthe data source. After generating and editing the web applicationdesign, the builder may generate a web application executable from theweb application design. The web application executable may be releasedfor use by the end users.

FIGS. 6 and 7 show an example of an end user using the web applicationcreated by the developer in FIG. 5 . Specifically, FIG. 6 shows anexample of the selected web page (508) in use. A runtime environment,such as the runtime environment shown in FIG. 2 , may assist manage thenavigation shown in FIGS. 6 and 7 by performing the Steps shown in FIG.4 . In FIG. 6 , the end user selects the entry corresponding to employee“Sheetal” (602), and enters “edit manager” in data field (520). The enduser may then select the get manager details button (510), whichcorresponds to the navigation trigger. In response, the runtimeenvironment evaluates the expression for the get manager details button,which is to access the target web page referenced by the data field(520) for the entry (602). FIG. 7 shows the resulting target page (700)that is displayed to the end user. As shown, the resulting target pageallows the end user to edit the manager's details.

The following are two example expressions in accordance with one or moreembodiments of the technology. The following are for example purposesonly and not intended to limit the scope of the technology.

In the first example, consider the scenario in which the expression isevaluated to select the related object page. In this case, employee isrelated to Department. In the view page of Employee, using theexpression below, an end user may dynamically navigate to the relatedinstance of the department view page.

Example 1

 1) Expression as Defined by the Developer:  2)  Page:Demo_Application.namespace+′_′+ ′view department′  3)  Object ID:employee.department.department.id  4) Generated Expression Executablefor web page:  5)  Page:″dapp_view_employee_xcp_gotopage_redirectPageUrlName_1″  6)  xcp.expression.Generated.addFunction(″dapp_view_employee_xcp_gotop    age_redirectPageUrlName_1″, ″function (context) { return    this.getValueFromAppContext(context,′namespace′) + ′_′ +    ′view_department′; }″);  7)  Object ID:″dapp_view_employee_xcp_gotopage_redirectObjectId_1″  8)   xcp.expression.Generated.addFunction(″dapp_view_employee_xcp_goto    page_redirectObjectId_1″, ″function (context) { return    this.getValueFromModel(context,′dapp_employee′,′department.child.id′    ); }″);  9) Function signature: 10)  Page: function (context) {return    this.getValueFromAppContext(context,′namespace′) + ′_′ +   ′view_department′; } 11)  Object ID: function (context) { return   this.getValueFromModel(context,′dapp_employee′,′department.child.id′);   }

In Example 1, line 2 shows an expression created by the developer to geta page name. Line 3 shows an expression created by the developer to getthe page object identifier. Line 5 is a generated JavaScript functionfor the page expression in line 2. Line 6 is a call to add the generatedJavaScript function to the expression function registry. In line 6,dapp_view_employee_xcp_gotopage_redirectPageUrlName_1 is the functionname and “function (context) {returnthis.getValueFromAppContext(context,‘namespace’)+‘_’+‘view_department’;}”is the function body. Lines 7 and 8 are the page object identifierfunction generated from line 3. Lines 9-11 are the function signaturesgenerated for the expression defined by the developer in lines 1-3.

Example 2 is an example for selecting the target page based on role. Inparticular, the following expression dynamically redirects to aparticular page based on what role the end user has selected. If an enduser is logged in as “contributor,” then the expression would redirectto the “Edit” page of the employee. If the end user changes role to“reader,” then the same button with the following expression selects the“View” page of employee. If the end user is not part of any roles, thenthe expression selects the Employee listing page.

Example 2

 1) Expression as defined by the developer:  2)  Page:  3)  ifThenElse(Demo_Application.user.currentUserRoleLabel==   ′contributor′,′dapp_edit_employee′,(ifThenElse(Demo_Application.user.cur.   rentUserRoleLabel==′Reader′,′dapp_view_employee′,′dapp employee′))) 4)  Object ID: widgets.results_list.selected_row.id  5) GeneratedExpression for web page:  6)  Page:″dapp_view_employee_xcp_gotopage_redirectPageUrlName_1″  7)  xcp.expression.Generated.addFunction   (″dapp_rolebasedredirectio_xcp_gotopage_redirectPageUrlName_1″,   ″function (context) { return   xcp.functions.ifThenElse(this.getValueFromUserContext(context,′current   UserRoleLabel′) == ′contributor′, ′dapp_edit_employee′,   (xcp.functions.ifThenElse(this.getValueFromUserContext(context,′current   UserRoleLabel′) == ′Reader′, ′dapp_view_employee′,′dapp_employee′)));    }″);  8)  Object ID:″dapp_rolebasedredirectio_xcp_gotopage_redirectObjectId_1″  9)  xcp.expression.Generated.addFunction(″dapp_rolebasedredirectio_xcp_got   opage_redirectObjectId_1″, ″function (context) { return   this.getValueFromSelectionModel(context,′results_list′,′id′); }″);10) Function signature: 11)  Page: function (context) { return 12)  xcp.functions.ifThenElse(this.getValueFromUserContext(context,′currentUser   RoleLabel′) == ′contributor′, ′dapp_edit_employee′,   (xcp.functions.ifThenElse(this.getValueFromUserContext(context,′current   UserRoleLabel′) == ′Reader′, ′dapp_view_employee′,′dapp_employee′)));    } 13)  Object ID: function (context) { return   this.getValueFromSelectionModel(context,′results_list′,′id′); }

In Example 2, line 3 is a role based page expression as defined by thedeveloper. Line 4 is a page object identifier expression as defined bythe developer. Lines 6 and 7 are the page expression function for thegenerated expression corresponding to the page expression defined by thedeveloper in line 3. Lines 8 and 9 are the page object identifierexpression for the generated expression corresponding to the page objectidentifier expression defined by the developer in line 4. Lines 10-13are the function signatures corresponding to the generated expressionsin lines 6-9.

Example 1 and Example 2 are for illustrative purposes only. Embodimentsof the technology are not limited to these examples.

Embodiments of the technology may be implemented on a computing system.Any combination of mobile, desktop, server, embedded, or other types ofhardware may be used. For example, as shown in FIG. 8 , the computingsystem (800) may include one or more computer processor(s) (802),associated memory (804) (e.g., random access memory (RAM), cache memory,flash memory, etc.), one or more storage device(s) (806) (e.g., a harddisk, an optical drive such as a compact disk (CD) drive or digitalversatile disk (DVD) drive, a flash memory stick, etc.), and numerousother elements and functionalities. The computer processor(s) (802) maybe an integrated circuit for processing instructions. For example, thecomputer processor(s) may be one or more cores, or micro-cores of aprocessor. The computing system (800) may also include one or more inputdevice(s) (810), such as a touchscreen, keyboard, mouse, microphone,touchpad, electronic pen, or any other type of input device. Further,the computing system (800) may include one or more output device(s)(808), such as a screen (e.g., a liquid crystal display (LCD), a plasmadisplay, touchscreen, cathode ray tube (CRT) monitor, projector, orother display device), a printer, external storage, or any other outputdevice. One or more of the output device(s) may be the same or differentfrom the input device(s). The computing system (800) may be connected toa network (812) (e.g., a local area network (LAN), a wide area network(WAN) such as the Internet, mobile network, or any other type ofnetwork) via a network interface connection (not shown). The input andoutput device(s) may be locally or remotely (e.g., via the network(812)) connected to the computer processor(s) (802), memory (804), andstorage device(s) (806). Many different types of computing systemsexist, and the aforementioned input and output device(s) may take otherforms.

Software instructions in the form of computer readable program code toperform embodiments of the technology may be stored, in whole or inpart, temporarily or permanently, on a non-transitory computer readablemedium such as a CD, DVD, storage device, a diskette, a tape, flashmemory, physical memory, or any other computer readable storage medium.Specifically, the software instructions may correspond to computerreadable program code that, when executed by a processor(s), isconfigured to perform embodiments of the technology.

Further, one or more elements of the aforementioned computing system(800) may be located at a remote location and connected to the otherelements over a network (814). Further, embodiments of the technologymay be implemented on a distributed system having a plurality of nodes,where each portion of the technology may be located on a different nodewithin the distributed system. In one embodiment of the technology, thenode corresponds to a distinct computing device. Alternatively, the nodemay correspond to a computer processor with associated physical memory.The node may alternatively correspond to a computer processor ormicro-core of a computer processor with shared memory and/or resources.

While the technology has been described with respect to a limited numberof embodiments, those skilled in the art, having benefit of thisdisclosure, will appreciate that other embodiments can be devised whichdo not depart from the scope of the technology as disclosed herein.Accordingly, the scope of the technology should be limited only by theattached claims.

What is claimed is:
 1. A method of navigation control comprising:receiving a first page of a web application, the first page of the webapplication including a user selectable user interface component and anexpression associated with the user selectable user interface component,the expression specifying a data source that is external to theexpression and an operation to perform to select a target page from aset of possible target pages; receiving an event based on a userselecting the user selectable user interface component; obtaining, inresponse to the event, the expression; gathering data from the datasource specified in the expression; evaluating the expression, whereinevaluating the expression comprises performing the operation specifiedby the expression included in the first page of the web applicationusing the data from the data source to select a second page from the setof possible target pages based upon the first page, wherein the secondpage is not identical to the first page, wherein each of the possibletarget pages is different from each of the other of the possible targetpages; and requesting the second page from a server as a next page afterthe first page.
 2. The method of claim 1, wherein the first pagecomprises a document object model (DOM) that defines a page view,wherein the page view includes the user selectable user interfacecomponent.
 3. The method of claim 2, wherein the DOM defines an inlinesource and wherein the data source is the inline source.
 4. The methodof claim 3, wherein the data source is a text field.
 5. The method ofclaim 3, wherein the data source is a control selected from a groupconsisting of a checkbox and a radio button.
 6. The method of claim 2,wherein the data source is an external data source that exists outsideof the DOM of the first page.
 7. The method of claim 6, wherein the datasource is a user interface event.
 8. The method of claim 6, wherein thedata source is a session variable.
 9. The method of claim 1, furthercomprising: storing the data from the data source in a context datacache connected to the DOM, wherein gathering the data from the datasource specified in the expression comprises gathering the data from thedata source from the context data cache.
 10. The method of claim 1,wherein the expression comprises an identification of the set ofpossible target pages and a result that triggers each possible targetpage in the set of possible target pages.
 11. The method of claim 1,wherein the operation is a conditional operation that specifies a firsttarget page when the data from the data source has a first value and asecond target page when the data from the data source has a secondvalue.
 12. A non-transitory, computer-readable medium embodying thereoncomputer readable program code for: receiving a first page of a webapplication, the first page of the web application including a userselectable user interface component and an expression associated withthe user selectable user interface component, the expression specifyinga data source that is external to the expression and an operation toperform to select a target page from a set of possible target pages;receiving an event based on a user selecting the user selectable userinterface component; obtaining, in response to the event, theexpression; gathering data from the data source specified in theexpression; evaluating the expression, wherein evaluating the expressioncomprises performing the operation specified by the expression includedin the first page of the web application using the data from the datasource to select a second page from the set of possible target pagesbased upon the first page, wherein the second page is not identical tothe first page, wherein each of the possible target pages is differentfrom each of the other of the possible target pages; and requesting thesecond page from a server as a next page after the first page.
 13. Thenon-transitory, computer-readable medium of claim 12, wherein the firstpage comprises a document object model (DOM) that defines a page view,wherein the page view includes the user selectable user interfacecomponent.
 14. The non-transitory, computer-readable medium of claim 13,wherein the DOM defines an inline source and wherein the data source isthe inline source.
 15. The non-transitory, computer-readable medium ofclaim 14, wherein the data source is a text field.
 16. Thenon-transitory, computer-readable medium of claim 14, wherein the datasource is a control selected from a group consisting of a checkbox and aradio button.
 17. The non-transitory, computer-readable medium of claim13, wherein the data source is an external data source that existsoutside of the DOM of the first page.
 18. The non-transitory,computer-readable medium of claim 17, wherein the data source is a userinterface event.
 19. The non-transitory, computer-readable medium ofclaim 17, wherein the data source is a session variable.
 20. Thenon-transitory, computer-readable medium of claim 12, furthercomprising: storing the data from the data source in a context datacache connected to the DOM, wherein gathering the data from the datasource specified in the expression comprises gathering the data from thedata source from the context data cache.
 21. The non-transitory,computer-readable medium of claim 12, wherein the expression comprisesan identification of the set of possible target pages and a result thattriggers each possible target page in the set of possible target pages.22. The non-transitory, computer-readable medium of claim 12, whereinthe operation is a conditional operation that specifies a first targetpage when the data from the data source has a first value and a secondtarget page when the data from the data source has a second value.